package org.dormnet.dao.mapping;

import java.sql.Date;
import java.sql.ResultSet;
import java.sql.SQLException;

import org.dormnet.dao.bean.Picturecomment;
public class PicturecommentMapping implements BeanMapping {

	public Object mapping(ResultSet resultSet) throws SQLException {
		
		Picturecomment albumcomment = new Picturecomment();
		albumcomment.setContent(resultSet.getString("content"));
		albumcomment.setPid(resultSet.getInt("pid"));
		albumcomment.setIsdeleted(resultSet.getInt("isdeleted"));
		albumcomment.setCommentor(resultSet.getInt("commentor"));
		albumcomment.setPictime(resultSet.getDate("pictime"));
		return albumcomment;
	}

}
